
class DesignCaseAttachmentUploader < CarrierWave::Uploader::Base
  include CarrierWave::MiniMagick
  include CarrierWave::MimetypeFu

  def store_dir
    "design_case_attachments/#{mounted_as}/#{model.id}"
  end

  #def default_url
    #ActionController::Base.helpers.asset_path([version_name, "default-people.jpg"].compact.join('_'))
  #end

  process resize_to_fit: [1200, 1200]

  # Create different versions of your uploaded files:
   version :thumb do
     process resize_to_fill: [300, 300]
   end

  def extension_white_list
    %w(jpg jpeg gif png)
  end
end

